package com.tanjie.blackbean.system.admin.feign;

import com.tanjie.blackbean.pojo.auth.UserInfoWithRolesAndPerms;
import com.tanjie.blackbean.pojo.system.UserInfoQuery;
import com.tanjie.blackbean.system.admin.service.IUserService;
import com.tanjie.blackbean.web.annotation.BlackBeanController;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * @author: tanjie
 * @date: 2022-04-21
 **/
@BlackBeanController(isFeign = true)
@RequestMapping(IUserClient.path)
public class UserClient implements IUserClient {

    @Resource
    IUserService userService;

    @Override
    public UserInfoWithRolesAndPerms queryUser(UserInfoQuery query) {
        return userService.queryUserInfo(query);
    }

}
